Bally BASIC Demo Disassembly
March 2010
Richard Degler

Included is the fixed BB/BBDemo listing {new comments marked with
curly brackets} - just search on "###" (or even "conditional") to
find the conditional blocks.  Also included the GLED prototype JIC


There are three types of changes made to the BASIC in the Bally
BASIC Demo cart...

First is by moving the pointers to the program text, which could
be done for any of the Basics, either into ROM or EXtended RAM.

Second, disabling the keypad - which is related to the first only
by the fact that you can not edit a program in ROM (it crashes.)
Done it two spots - WHATSU to check for pause while running, and
CHKIO to read the keypad (which jumps to RUN the program instead.)

Thirdly (and the reason the code got shifted) is that the version
of BALLY BASIC that they used had been edited to test out the new
"Graphic Line EDitor" using the PAUSE key (which showed up later.)

To do that they took out the ":RUN" routine completely, and broke
the ":INPUT" and ":LIST" also (but left the Calculator hooked in!)

Of course that feature (and tape reading) is useless in the DEMO,
but since it's different it is included it in this archive as a
file called GLEDBBAS.BIN.

You had to use Word+Pause or Word+Space, but I took the liberty
of adding in the unshifted-Pause the way ASTRO BASIC had done it,
so it's that one byte different. Did figure out that I was using
EDKEY wrong in the BALLY BASIC listing - should have been DEADKEY.